package com.ycz.pattern.behaviour.statepattern;

/**
 * @Description
 * @ClassName StartState
 * @Author yanchengzhi
 * @date 2023.11.29 22:42
 */
public class StartState implements State {
    @Override
    public void doAction(Context context) {
        System.out.println("player is in start state!");
        context.setState(this);
    }

    public String toString() {
        return "Start State";
    }

}
